<!doctype html>
<html>
<head class="app">
    <title>囧么肥事</title>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html;"/>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
    <meta name="renderer" content="webkit">
    <!-- 目录页样式 S -->
    <link rel="stylesheet" type="text/css" media="screen" href="../../static/css/directory.css"/>
    <!-- 目录页样式 E -->
</head>

<body>
<div id="index">
    <p class="page-title"><span>{{ pageTitle }}</span></p>

    <div class="ui-timeLine">
        <a v-for="item in articles" class="item">
            <div class="line"></div>
            <div class="dot"></div>
            <div class="box">
                <div class="cbox" style="cursor:pointer;" @click="to_article_detail(articlesPrefix + item.title)">
                    <div class="title">{{articlesPrefix}}{{item.title}}</div>
                </div>
            </div>
        </a>
        <div class="activeLine"></div>
    </div>
</div>
<!--vue S-->
<script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="https://www.jq22.com/jquery/vue.min.js"></script>
<!--vue E-->

<!--通用js S-->
<script src="../../static/js/common.js" type="text/javascript"></script>
<!--通用js E-->

<!--目录相关js S-->
<script src="../../static/js/directory.js" type="text/javascript"></script>
<!--目录相关js E-->
<script>
  const vue_data = new Vue({
    el: "#index",
    data: {
      pageTitle: '《设计模式面试小抄》',
      articlesPrefix: '《设计模式实践》',
      articles: [
        {title: '策略和工厂模式替代业务场景中复杂的ifelse'},
        {title: '索引考点一面总结'},
        {title: '索引考点二面总结'},
      ],
    },
    mounted: function () {
      $(".ui-timeLine").uiTimeLine();
    },
    methods: {
      to_article_detail(url) {
        window.open(url + '.html', "_blank");
      }
    }
  });
</script>
</body>
</html>